{temp('admin/head')}

</head>
<body class="page-body">	
		{temp('admin/left')}
			{temp('admin/top')}
			
			<!-- Basic Setup -->
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">{$tit}</h3>
				</div>
				<div class="panel-body">
							
					<div class="form-horizontal">
						
						<div class="form-group">
							<label class="col-sm-2 control-label" for="field-1">域名</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" style="width:50%;" id="field-1" value="{$r['url']}">
							</div>
						</div>
						
						<div class="form-group-separator"></div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label" for="field-1">网站名称</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" style="width:50%;" id="field-2" value="{$r['title']}">
							</div>
						</div>
						
						<div class="form-group-separator"></div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label" for="field-1">允许上传的图片类型</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" style="width:50%;" id="field-3" value="{$r['imgtype']}">
							</div>
						</div>
						
						<div class="form-group-separator"></div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label" for="field-1">允许上传的图片最大值</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" style="width:55px;float:left;" id="field-4" value="{$r['imgsize']}">
								<span style="width:100px;height:32px;padding:6px 12px;font-size:13px;color:#555;display:block;margin-left: 50px;">M</span>
							</div>
						</div>
						
						<div class="form-group-separator"></div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label" for="field-1">允许上传的文件类型</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" style="width:50%;" id="field-5" value="{$r['filetype']}">
							</div>
						</div>
						
						<div class="form-group-separator"></div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label" for="field-1">允许上传的文件最大值</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" style="width:55px;float:left;" id="field-6" value="{$r['filesize']}">
								<span style="width:100px;height:32px;padding:6px 12px;font-size:13px;color:#555;display:block;margin-left: 50px;">M</span>
							</div>
						</div>
						
						<div class="form-group-separator"></div>
											
						<span class="btn btn-secondary btn-icon pull-right" onclick="xg()">
							修改
						</span>
					</div>
				</div>
			</div>

		{temp('admin/foot')}
	<!-- Imported styles on this page -->
	<script>
	function xg(){
		var url = $('#field-1').val();
		var title = $('#field-2').val();
		var imgtype = $('#field-3').val();
		var imgsize = $('#field-4').val();
		var filetype = $('#field-5').val();
		var filesize = $('#field-6').val();
		$.post('/admin/?act=xitong&met=con_u{$gnpd}',{url:url,title:title,imgtype:imgtype,imgsize:imgsize,filetype:filetype,filesize:filesize},function(data){
			if(data == 'cg'){
				alert('修改成功');
				location.href = '';
			}else if(data == 'error'){
				alert('修改失败');
			}else if(data == '-1'){
				alert('域名不能为空');
			}else if(data == '-2'){
				alert('网站标题不能为空');
			}else{
				alert(data);
			}
		});
	}
	</script>
	<!-- Bottom Scripts -->
	<script src="{$adstyle}/js/bootstrap.min.js"></script>
	<script src="{$adstyle}/js/TweenMax.min.js"></script>
	<script src="{$adstyle}/js/resizeable.js"></script>
	<script src="{$adstyle}/js/joinable.js"></script>
	<script src="{$adstyle}/js/xenon-api.js"></script>
	<script src="{$adstyle}/js/xenon-toggles.js"></script>
	<script src="{$adstyle}/js/datatables/js/jquery.dataTables.min.js"></script>

	<link rel="stylesheet" href="{$adstyle}/js/select2/select2.css">
	<link rel="stylesheet" href="{$adstyle}/js/select2/select2-bootstrap.css">
	<script src="{$adstyle}/js/select2/select2.min.js"></script>


	<!-- JavaScripts initializations and stuff -->
	<script src="{$adstyle}/js/xenon-custom.js"></script> 

</body>
</html>